Add Install-SalesforceClient command functionality#18
Conversation
|
|
||
| function Write-ToConsole{ | ||
| param( | ||
| [Parameter(ValueFromPipeline)][string]$Color = "Magenta", |
Check warning
Code scanning / PSScriptAnalyzer
Command accepts pipeline input but has not defined a process block. Warning
| function Write-ToConsole{ | ||
| param( | ||
| [Parameter(ValueFromPipeline)][string]$Color = "Magenta", | ||
| [Parameter(ValueFromPipeline, Position=0)][string]$Message |
Check warning
Code scanning / PSScriptAnalyzer
Command accepts pipeline input but has not defined a process block. Warning
| [Parameter(ValueFromPipeline, Position=0)][string]$Message | ||
|
|
||
| ) | ||
| Write-Host $message -ForegroundColor $Color |
Check warning
Code scanning / PSScriptAnalyzer
File 'MyWrite.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. Warning
Introduce a new command to install the Salesforce CLI via npm, including checks for npm installation and Salesforce CLI status. Enhance console output for better user feedback during the installation and configuration process.